package cn.net.msg.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.stereotype.Component;

@Component("newstype")
@Entity 
@Table(name = "tb_newstype")
public class TbNewsType {

    @Id @Column(name = "News_typeid",length=11)
    private int newsTypeId;

    @Column(name = "News_typename",length=11)
    private String newsTypeName;

    public int getNewsTypeId() {
        return newsTypeId;
    }

    public void setNewsTypeId(int newsTypeId) {
        this.newsTypeId = newsTypeId;
    }

    public String getNewsTypeName() {
        return newsTypeName;
    }

    public void setNewsTypeName(String newsTypeName) {
        this.newsTypeName = newsTypeName;
    }    

}
